/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.penguin.modules.field.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.Area;
import com.thinkgem.jeesite.modules.sys.entity.Office;
import com.thinkgem.jeesite.modules.sys.entity.User;

/**
 * 商家POS机管理维护Entity
 * @author 余小凡
 * @version 2015-05-21
 */
public class FieldCustomerPos extends DataEntity<FieldCustomerPos> {
	
	private static final long serialVersionUID = 1L;
	private String sn;		// S\N码
	private String code;		// 自定义编码
	private String pcode;		// 机器编码
	private String brcode;		// 工行资源编码
	private String version;		// 软件版本号
	private Area area;		// 地址编号
	private String contact;		// 联系人
	private String phone;		// 联系电话
	private String address;		// 详细地址
	private String storesCode;		// 门店
	private FieldCustomer customerCode;		// 商家
	private String rate;		// 签约汇率
	private String deposit;		// 押金
	private String receipt;		// 收据单号
	private String models;		// 机型
	private String source;		// 机器来源
	private String manager;		// 支行经理
	private String managerphone;		// 支行经理联系电话
	private String latitude;		// 纬度
	private String longitude;		// 经度
	private User manageUser;		//管理用户
	private String openTime;		//开通时间
	private String receiveTime;		//领取时间
	private Office office;			//所属机构
	private String label;			//标签
	private String mobilePos;		//是否是移动POS机
	private String paper;			//打印纸型号	
	public FieldCustomerPos() {
		super();
	}

	public FieldCustomerPos(String id){
		super(id);
	} 
	@Length(min=0, max=50, message="S\\N码长度必须介于 0 和 50 之间")
	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}
	
	@Length(min=0, max=50, message="自定义编码长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=50, message="机器编码长度必须介于 0 和 50 之间")
	public String getPcode() {
		return pcode;
	}

	public void setPcode(String pcode) {
		this.pcode = pcode;
	}
	
	@Length(min=0, max=50, message="工行资源编码长度必须介于 0 和 50 之间")
	public String getBrcode() {
		return brcode;
	}

	public void setBrcode(String brcode) {
		this.brcode = brcode;
	}
	
	@Length(min=0, max=20, message="软件版本号长度必须介于 0 和 20 之间")
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}
	
	@NotNull(message="地址不能为空")
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	@Length(min=0, max=500, message="详细地址长度必须介于 0 和 500 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=50, message="门店长度必须介于 0 和 50 之间")
	public String getStoresCode() {
		return storesCode;
	}

	public void setStoresCode(String storesCode) {
		this.storesCode = storesCode;
	}
	
	@NotNull(message="商家不能为空")
	public FieldCustomer getCustomerCode() {
		return customerCode;
	}

	public void setCustomerCode(FieldCustomer customerCode) {
		this.customerCode = customerCode;
	}
	
	public String getRate() {
		return rate;
	}

	public void setRate(String rate) {
		this.rate = rate;
	}
	
	public String getDeposit() {
		return deposit;
	}

	public void setDeposit(String deposit) {
		this.deposit = deposit;
	}
	
	@Length(min=0, max=20, message="收据单号长度必须介于 0 和 20 之间")
	public String getReceipt() {
		return receipt;
	}

	public void setReceipt(String receipt) {
		this.receipt = receipt;
	}
	
	@Length(min=0, max=20, message="机型长度必须介于 0 和 20 之间")
	public String getModels() {
		return models;
	}

	public void setModels(String models) {
		this.models = models;
	}
	
	@Length(min=0, max=20, message="机器来源长度必须介于 0 和 20 之间")
	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}
	
	@Length(min=0, max=20, message="支行经理长度必须介于 0 和 20 之间")
	public String getManager() {
		return manager;
	}

	public void setManager(String manager) {
		this.manager = manager;
	}
	
	@Length(min=0, max=20, message="支行经理联系电话长度必须介于 0 和 20 之间")
	public String getManagerphone() {
		return managerphone;
	}

	public void setManagerphone(String managerphone) {
		this.managerphone = managerphone;
	}
	
	@Length(min=0, max=50, message="纬度长度必须介于 0 和 50 之间")
	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	
	@Length(min=0, max=50, message="经度长度必须介于 0 和 50 之间")
	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public User getManageUser() {
		return manageUser;
	}

	public void setManageUser(User manageUser) {
		this.manageUser = manageUser;
	}

	public String getOpenTime() {
		return openTime;
	}

	public void setOpenTime(String openTime) {
		this.openTime = openTime;
	}

	public String getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(String receiveTime) {
		this.receiveTime = receiveTime;
	}

	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getMobilePos() {
		return mobilePos;
	}

	public void setMobilePos(String mobilePos) {
		this.mobilePos = mobilePos;
	}

	public String getPaper() {
		return paper;
	}

	public void setPaper(String paper) {
		this.paper = paper;
	}
	
}